# cmd: python3 helper4PgyUpload.py --BuildType=test --FilePath=/Users/guodong/workspace1/guang-app/build/app/outputs/flutter-apk/app-ci-release.apk
# desc: 上传文件到pgy，然后下载pgy二维码到apk/ipa同目录下， 生成.qrcode.png & .uploadRsp.json
import os
import json
import string
import sys
import time
import getopt

try:
    import requests
except:
    print("import request exception! will install requests")
finally:
    print(os.system("pip3 install requests"))
    print(os.system("pip3 install requests-toolbelt"))
    pass


def log(tag, txt):
    print("{}::{}".format(tag, txt))
    pass


def last20GitSubmit():
    gitLog = os.popen("git log --oneline -5").read()
    return "" + gitLog
